package 算法.test;

import java.util.ArrayList;
import java.util.List;
import java.util.Stack;

public class StackSort {
	public static void main(String[] args) {
		String str = "How are you?";
		Stack strStack = new Stack();
		char[] chars = str.toCharArray();
		for (int i = 0; i < chars.length; i++) {
			strStack.push(chars[i]);
		}
		while (!strStack.isEmpty()) {
			System.out.print(strStack.pop());
		}
	}
}
